﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.Common
{
    public class DataPage<T>
    {
        public List<T> Data=new List<T>();
        public Object CustomData { get; set; }
        
        public int RecordCount = 0;
        public int PageSize = 20;
        public int PageIndex = 0;        
        public int PageCount { get { return (RecordCount == 0 || PageSize == 0) ? 0 : (RecordCount + PageSize - 1) / PageSize; } }
    }
}
